package com.app.service;

import com.app.model.ProtectionPointModel;
import com.app.util.Result;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

public interface ProtectionPointService {


    ProtectionPointModel getPointById(int id);

    Page<ProtectionPointModel> getPagePointList(Integer page, Integer limit, String name, List<Integer> idList, Integer departmentId, Integer sortType);//保护点管理分页查询

    void update(ProtectionPointModel model);

    void insert(ProtectionPointModel model);

    void delete(int id);

    Integer proCount(List<Integer> idsList);

    List<ProtectionPointModel> getStatisticsByIds(List<Integer> idList, String key);//首页统计

    List<ProtectionPointModel> selectList();

    List<ProtectionPointModel> getPlantByIds(List<Integer> appIdList);

    // 导入保护点.信息点
    String importProtectionPoint(MultipartFile file) throws IOException;

    /**
     * 批量删除保护点信息
     * @param ids
     * @param request
     * @return
     */
    Result<Object> deleteBatchByIds(String ids, HttpServletRequest request);
}
